package com.yjy.workproject.result;

/**
 * 错误码枚举（固定值 0:成功，-1:系统错误）
 * 需要与前端的zh.js里的code对应
 * @author 帅
 */
public enum ResultEnum {
    SUCCESS(0, "成功");


    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
